@namespace html "http://www.w3.org/1999/xhtml";
@namespace fb2 "http://www.gribuser.ru/xml/fictionbook/2.0";

html|body, fb2|body {
    -epub-hyphens: -epubx-expr(pref-hyphenate?"auto":"manual");
}

@-adapt-footnote-area {
	-adapt-margin-before: 0.5em;
	-adapt-margin-after: 0.5em;
}

@-adapt-footnote-area ::before {
	display: block;
	-adapt-border-before-width: 1px;
	-adapt-border-before-style: solid;
	-adapt-border-before-color: black;
	-adapt-margin-after: 0.4em;
	-adapt-margin-start: 0;
	-adapt-margin-end: 60%;
}

/* default page master */
@-epubx-page-master :background-host {
    @-epubx-partition :layout-host {
        -epubx-flow-from: body;
        top: -epubx-expr(header.margin-bottom-edge);
        bottom: -epubx-expr(page-height - footer.margin-top-edge);
        left: 0px;
        right: 0px;
    	column-width: 25em; 
    }
    @-epubx-partition footer :oeb-page-foot {
    	-epub-writing-mode: horizontal-tb;
    	-epubx-flow-from: oeb-page-foot;
    	bottom: 0px;
    	left: 0px;
    	right: 0px;
    }
    @-epubx-partition header :oeb-page-head {
    	-epub-writing-mode: horizontal-tb;
    	-epubx-flow-from: oeb-page-head;
    	top: 0px;
    	left: 0px;
    	right: 0px;
    }
}